import {nanoid} from "@reduxjs/toolkit";

/**
 * 字符串工具类
 */
export default class StringUtil{

    /**
     * 判断字符串是否为空
     */
    public static isEmpty(str?: string | null){
        return str === null || str === undefined || str.trim().length === 0
    }

    public static uuid32(): string{
        return nanoid(32)
    }
}